<?php 
include 'db.php';
include 'input.php';

$id = $input->get('do');
if($id!==false){
    $sql = "select * from news where id = '{$id}'";
    $result = $conn->query($sql);
    if($result){
        if($row = $result->fetch_array(MYSQLI_ASSOC)){
          
        }
        
    }
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改</title>
</head>
<body>
	
	<form action="updateDo.php" method="post">
	<input type="hidden" name="id" value="<?php echo $row['id']?>" />
    标题：<input type="text" name="biaoti" value="<?php echo $row['biaoti']?>"><br/>
    内容：<textarea rows="5px" cols="20px" name="content"><?php echo $row['content']?></textarea>
    <input type="submit" value="确认修改">
    </form>
</body>
</html>